package com.mate.cloud.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 枚举扫描配置
 *
 * @author cong zhi
 * @email 448341911@qq.com
 * @createDate 2023/3/3 17:02
 * @version: v1.0
 */
@Slf4j
@Configuration
@EnableConfigurationProperties({BaseEnumProperties.class})
public class BaseEnumConfig {

    @Bean
    @ConditionalOnMissingBean
    public BaseEnumProperties baseEnumProperties() {
        log.info(">>>系统正在进行初始化......");
        return new BaseEnumProperties();
    }
}
